package com.ihr360.insurance.controller.benefit;

import com.ihr360.insurance.model.dto.benefits.MandatoryBenefitGroup;
import com.ihr360.insurance.service.MandatoryBenefitGroupService;
import com.ihr360.maven.plugin.ModuleCodeStore;
import com.ihr360.maven.plugin.annotation.ModuleDefinition;
import com.ihr360.rest.service.SimpleRestService;
import com.ihr360.rest.webmvc.AbstractRestSimpleWithLongIdController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 社保公积金配置（设置社保缴纳地，缴纳类型和社保方案模板）
 * @author david.wei
 */
@RestController
@RequestMapping("/mandatoryBenefitGroups")
@ModuleDefinition(mainModuleCode = ModuleCodeStore.Module.BENEFIT_CODE_ADMIN,
        mainModuleName = ModuleCodeStore.Module.BENEFIT_NAME_ADMIN,
        subModuleCode = ModuleCodeStore.Module.BenefitAdmin.SI_GROUP_ADMIN_CODE,
        subModuleName = ModuleCodeStore.Module.BenefitAdmin.SI_GROUP_ADMIN_NAME,
        hasExtendsAbstractRestController = true)
public class MandatoryBenefitGroupController extends AbstractRestSimpleWithLongIdController<MandatoryBenefitGroup> {
    @Autowired
    MandatoryBenefitGroupService benefitGroupService;

    @Override
    public SimpleRestService getSimpleRestService() {
        return benefitGroupService;
    }

}